﻿@model KL.Store.Web.Models.ProductModel
@using KL.Store.Core
@{
    Layout = null;
}
@{
    var priceFilterStr = "###,###,##0.00";
    if (Parameters.HideOddFromPrice)
    {
        priceFilterStr = "###,###,##0";
    }
}
@if (Model.DiscountPercent > 0 || Model.DiscountTotal > 0 || Model.DiscountDisplayTotal > 0)
{
    if (Model.DiscountPercent > 0)
    {
    <div class="discountView discountView2">%@Model.DiscountPercent.ToString("###,###,##0")<span class="dsccls">İNDİRİM</span></div>
    }
    else if (Model.DiscountTotal > 0)
    {
    <div class="discountView discountView2">@( Model.DiscountTotal.ToString("###,###,##0"))@Html.Raw(Model.Currency == "TL" ? "<i class=\"fa fa-try\"></i>" : " " + Model.Currency)<span class="dsccls">İNDİRİM</span></div>
    }
    else if (Model.DiscountDisplayTotal > 0)
    {
    <div class="discountView discountView2">%@Model.DiscountDisplayTotal.ToString("###,###,##0")<span class="dsccls">İNDİRİM</span></div>
    }
}